package com.example.commons.entity;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @program: authority-v3.0.7
 * @ClassName:Npc
 * @description: npc列表 实体类
 * @author:dyy
 * @Version 3.0
 **/

@Data
@Builder(toBuilder = true)
@AllArgsConstructor
@NoArgsConstructor
@TableName("sys_npc")
@Schema(title = "Npc对象", description = "npc列表")
public class Npc implements Serializable {
    private static final long serialVersionUID = 1L;

    @Schema(title = "序列号")
    @TableId(value = "id", type = IdType.AUTO)
    @ExcelProperty("序列号")
    private Long id;

    @Schema(title = "名称")
    @TableField("name")
    @ExcelProperty("名称")
    private String name;

    @Schema(title = "图片")
    @TableField("img")
    @ExcelProperty("图片")
    private String img;

    @Schema(title = "所属类型")
    @TableField("aid")
    @ExcelProperty("所属类型")
    private Long aid;

    @Schema(title = "所在地点")
    @TableField("address")
    @ExcelProperty("所在地点")
    private String address;

    @Schema(title = "影神图")
    @TableField("imgs")
    @ExcelProperty("影神图")
    private String imgs;

    @Schema(title = "详情介绍")
    @TableField("content")
    @ExcelProperty("详情介绍")
    private String content;

    @TableField(exist = false)
    @ExcelIgnore
    private NpcType npcType = new NpcType();
}
